package com.dom4j.demo;

import java.net.MalformedURLException;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.junit.Test;

public class Dom4JWriteXMLTest {

	@Test
	public void Dom4JWriteXMLTest1()  throws Exception{
		
		Document document = Dom4JWriteXML.createDocument();
		
		Element root = Dom4JWriteXML.createRootElement(document, "class");
		
		Dom4JWriteXML.createStudentInfoDemo(root);		
		
		Dom4JWriteXML.writeToFile(document, "C:/dev/students1.xml");
		
	}
}
